Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ipv6 join failure on upgrade 0.7.2 to 0.8 #2878

Closed
wants to merge 1 commit into from

Conversation

42wim
Copy link
Contributor

@42wim 42wim commented Apr 6, 2017

We're running an IPv6-only cluster.

With upgrade from 0.7.2 to 0.8 we got dial tcp: too many colons in address on startup

This PR fixes this by adding brackets in serf_flooder when the address is an IPv6 address (and no port has been added by net.JoinHostPort (which adds the brackets correctly))

This way, the hasPort function (see https://github.com/hashicorp/consul/blob/master/vendor/github.com/hashicorp/memberlist/util.go#L220-L232) works correctly when called by resolveAddr (https://github.com/hashicorp/consul/blob/master/vendor/github.com/hashicorp/memberlist/memberlist.go#L277)

@slackpad slackpad added this to the 0.8.1 milestone Apr 12, 2017
@slackpad slackpad added the type/bug Feature does not function as expected label Apr 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Feature does not function as expected
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants